<div class="upload">
    <%if(value){%>
        <div class="upload-wrap" style="background-image:url(<%=value%>)"></div>
    <%}else{%>
        <div class="upload-wrap"></div>
    <%}%>
    <input type="hidden" name="content1[<%=ids%>]" value="<%=value%>">
    <p>第<%=num%>题</p>
</div>